<div class="panel panel-default">
	<div class="panel-heading">
		<?php 
			$this->widget('system.zii.widgets.CBreadcrumbs',array(
					'links'=>array(
							'后台管理',
							'友情链接列表'
			)
			));
		?>
	</div>
	<div class="panel-body">
		<p class="text-right">
			<a class="btn btn-primary" href="<?php echo $this->createUrl('add');?>">添加链接</a>
		</p>
		<table class="table">
			<thead>
				<tr>
					<th>ID号</th>
					<th>名称</th>
					<th>URL</th>
					<th>排序</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<?php foreach($list as $v):?>
				<tr>
					<td><?php echo $v->links_id; ?></td>
					<td><?php echo $v->links_name; ?></td>
					<td><?php echo $v->links_url; ?></td>
					<td><?php echo $v->sort; ?></td>
					<td>
						<a href="<?php echo $this->createUrl('edit', array('links_id'=>$v->links_id)); ?>">编辑</a>
						<a href="">删除</a>
					</td>
				</tr>
			<?php endforeach;?>
			</tbody>
		</table>
	</div>
</div>